package com.touchportfolio.events
{
	import flash.events.Event;

	/**
	 * This event handles all errors dispatched in the loaders
	 **/ 
	
	public class ErrorEvent extends Event
	{
		public static const ERROR:String = "error";
		private var _errors:Array;
		
		/**
		 * This contains an verbal explanation of the error
		 * @return Array
		 **/
		
		public function get errors():Array
		{
			return _errors;
		}
		
		/**
		 * Contructor
		 **/
		
		public function ErrorEvent(errors:Array, type:String, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
			_errors = errors;
		}
		
	}
}